<template>
  <div class="audio-list">
    <ul style="overflow: hidden;">
      <li v-for="(item,index) in fileList" :key="index">
        <div class="fleft do-t-div">
          <a><img :src="$store.state.baseImgUrl+item.img" width="170" height="175"></a>
        </div>
        <div class="fleft do-t-main" style="width: 620px">
          <h1>{{ item.name }}</h1>
<!--          <p>{{ item.info }}</p>-->
          <p>含有音频文件 {{ item.audioCount }} 个</p>
        </div>
        <div class="fleft do-data">

        </div>
        <div class="fleft do-more">
          <el-button @click="AudioDetail(item.id)"> 查看所有音频</el-button>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "OnlineComponent",
  data() {
    return {
      downloadList: [
        {
          imgSrc: 'http://www.jyxue.com.cn/uploads/article_category_source/202108301337570f.jpg',
          title: '2021秋-教与学·学导练-英语-八年级上册-听说训练本',
          info: '2021秋-教与学·学导练-英语-八年级上册-听说训练本-（包含12个听力音频）',
          linkSrc: 'http://www.jyxue.com.cn/uploads/qrcode/0.80622100%201614136101.png',
        },
        {
          imgSrc: 'http://www.jyxue.com.cn/uploads/article_category_source/202108301337405e.jpg',
          title: '2021秋-教与学·学导练-英语-八年级上册-配人教版-听力训练本',
          info: '2021秋-教与学·学导练-英语-八年级上册-配人教版-听力训练本-（包含12个听力音频）',
          linkSrc: 'http://www.jyxue.com.cn/uploads/qrcode/0.60538000%201614136087.png',
        },
        {
          imgSrc: 'http://www.jyxue.com.cn/uploads/article_category_source/202108201658052a.jpg',
          title: '2021秋-教与学·学导练-英语-七年级上册-配人教版-听力训练本',
          info: '2021秋-教与学·学导练-英语-七年级上册-配人教版-听力训练本-（包含12个听力音频）',
          linkSrc: 'http://www.jyxue.com.cn/uploads/qrcode/0.60538000%201614136087.png',
        },
        {
          imgSrc: 'http://www.jyxue.com.cn/images/202109/thumb_img/1375_thumb_G_1631080313656.jpg',
          title: '2021秋-教与学·学导练-英语-八年级上册-配人教版-听力训练本',
          info: '2021秋-教与学·学导练-英语-八年级上册-配人教版-听力训练本-（包含12个听力音频）',
          linkSrc: 'http://www.jyxue.com.cn/uploads/qrcode/0.60538000%201614136087.png',
        },
        {
          imgSrc: 'http://www.jyxue.com.cn/images/202109/thumb_img/1375_thumb_G_1631080313656.jpg',
          title: '2021秋-教与学·学导练-英语-八年级上册-配人教版-听力训练本',
          info: '2021秋-教与学·学导练-英语-八年级上册-配人教版-听力训练本-（包含12个听力音频）',
          linkSrc: 'http://www.jyxue.com.cn/uploads/qrcode/0.60538000%201614136087.png',
        },
      ]
    }

  },
  props: {
    fileList: {
      type: Array,
      default: () => []
    }
  },
  components: {
    // ThingsContains
  },
  methods: {
    AudioDetail(audioId) {
      this.$router.push({path: '/audioList', query: {audioId: audioId}})
    }
  }
}
</script>

<style scoped>
.audio-list {
  overflow: hidden;
  border-top: 1px solid #cfd7e5;
  width: 71em;
  margin: 0 auto;
}

.audio-list ul li {
  border-bottom: 1px solid #cfd7e5;
  padding: 26px 0;
  overflow: hidden;
}

.do-t-div {
  width: 242px;
  height: 145px;
}

.fleft, .uleft li {
  float: left;
  display: inline;
}

.do-t-div a {
  width: 242px;
  height: 145px;
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

.do-t-main {
  padding: 0 34px;
  width: 475px;
}

.fleft, .uleft li {
  float: left;
  display: inline;
}

.do-t-main h1 {
  font-size: 24px;
  margin-bottom: 20px;
  margin-top: 16px;
}

.do-t-main h1 a {
  color: #000;
}

.do-t-main p {
  text-indent: 30px;
}

.do-data {
  border-left: 1px solid #dedddd;
  border-right: 1px solid #dedddd;
  width: 135px;
  text-align: center;
  line-height: 145px;
}

.fleft, .uleft li {
  float: left;
  display: inline;
}

/*图片大小*/
.linkImg {
  width: 124px
}

.do-more {
  padding: 55px 0 0 31px;
}

.fleft, .uleft li {
  float: left;
  display: inline;
}

.do-more a {
  width: 129px;
  height: 35px;
  display: block;
  /*background: url(../skin/icon18.png) no-repeat;*/
}

</style>